import request from '@/utils/request'

/** ==================
 *      1. 配置管理相关
 * ===================
 */

/**
 * 获取库存列表
*/
export const getGoodsInventoryList = (data) => {
  return request({
    url: '/api/hailishop/goodsInventory/getGoodsInventoryList',
    method: 'post',
    data
  })
}

/**
 * 导入商品
*/
export const importGoods = (data) => {
  return request({
    url: '/api/hailishop/goodsInventory/importGoods',
    method: 'post',
    data
  })
}

/**
 * 上架商品
*/
export const createGroupGoods = (data) => {
  return request({
    url: '/api/hailishop/goodsInventory/createGroupGoods',
    method: 'post',
    data
  })
}

/**
 * 获取库存详情
*/
export const getStockDetailData = (params) => {
  return request({
    url: '/api/hailishop/goodsInventory/getGoodById',
    method: 'get',
    params
  })
}

/**
 * 图片上传
*/
export const uploadList = (data) => {
  return request({
    url: '/api/otms-admin/file/FBAupload',
    method: 'post',
    data
  })
}

